export function tabApiData(tab: number) {
  // 全量
  const allRecommendData =
    '{"comm":{"ct":24},"category":{"method":"get_hot_category","param":{"qq":""},"module":"music.web_category_svr"},"recomPlaylist":{"method":"get_hot_recommend","param":{"async":1,"cmd":2},"module":"playlist.HotRecommendServer"},"playlist":{"method":"get_playlist_by_category","param":{"id":8,"curPage":1,"size":40,"order":5,"titleid":8},"module":"playlist.PlayListPlazaServer"},"new_song":{"module":"newsong.NewSongServer","method":"get_new_song_info","param":{"type":5}},"new_album":{"module":"newalbum.NewAlbumServer","method":"get_new_album_info","param":{"area":1,"sin":0,"num":20}},"new_album_tag":{"module":"newalbum.NewAlbumServer","method":"get_new_album_area","param":{}},"toplist":{"module":"musicToplist.ToplistInfoServer","method":"GetAll","param":{}},"focus":{"module":"music.musicHall.MusicHallPlatform","method":"GetFocus","param":{}}}'
  const allRecommendDataSign = 'zza4b16f86g1m9s5ez7ff15c4441255ee9ef959d8dacccc3f88'

  // 为你推荐
  const forYouRecommend =
    '{"comm":{"ct":24},"recomPlaylist":{"method":"get_hot_recommend","param":{"async":1,"cmd":2},"module":"playlist.HotRecommendServer"}}'
  const forYouRecommendSign = 'zza8qc6tdz74rvozl1099cdff7fe034e6f3eaf2265079283d'

  // 网络歌曲
  const networkMusic =
    '{"comm":{"ct":24},"playlist":{"method":"get_playlist_by_category","param":{"id":3056,"curPage":1,"size":40,"order":5,"titleid":3056},"module":"playlist.PlayListPlazaServer"}}'
  const networkMusicSign = 'zzah1l89mjbxaf11eec0bd11fdd5283fb28a393b9379c9a'

  // 现场音乐
  const ktvMusic =
    '{"comm":{"ct":24},"playlist":{"method":"get_playlist_by_category","param":{"id":64,"curPage":1,"size":40,"order":5,"titleid":64},"module":"playlist.PlayListPlazaServer"}}'
  const ktvMusicSign = 'zza8smvojamz41d9444e6ecd99d3dc59d009faa16f6f3'

  // night
  const night = '{"comm":{"ct":24},"playlist":{"method":"get_playlist_by_category","param":{"id":32,"curPage":1,"size":40,"order":5,"titleid":32},"module":"playlist.PlayListPlazaServer"}}'
  const nightSign = 'zzav9m5fo3bgz7xzkh24138e1dcf189356aabf7ac008a628a1'

  // 官方歌单
  const officialMusic =
    '{"comm":{"ct":24},"playlist":{"method":"get_playlist_by_category","param":{"id":3317,"curPage":1,"size":40,"order":5,"titleid":3317},"module":"playlist.PlayListPlazaServer"}}'
  const officialMusicSign = 'zzaapj9u1xubh481851622f46256cc8eb3c0b2e92d6b9'

  // 情歌
  const loveMusic =
    '{"comm":{"ct":24},"playlist":{"method":"get_playlist_by_category","param":{"id":71,"curPage":1,"size":40,"order":5,"titleid":71},"module":"playlist.PlayListPlazaServer"}}'
  const loveMusicSign = 'zzanyo98kkvq1n9b89af58ec4a2a006be15191eb7138e6'

  let tabApi = allRecommendData
  let sign = allRecommendDataSign
  switch (tab) {
    case 0:
      tabApi = allRecommendData
      sign = allRecommendDataSign
      break
    case 1:
      tabApi = forYouRecommend
      sign = forYouRecommendSign
      break
    case 2:
      tabApi = networkMusic
      sign = networkMusicSign
      break
    case 3:
      tabApi = ktvMusic
      sign = ktvMusicSign
      break
    case 4:
      tabApi = night
      sign = nightSign
      break
    case 5:
      tabApi = officialMusic
      sign = officialMusicSign
      break
    case 6:
      tabApi = loveMusic
      sign = loveMusicSign
      break
    default:
      tabApi = allRecommendData
      sign = allRecommendDataSign
  }
  return {
    tabApi: tabApi,
    sign: sign
  }
}
